{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e7r.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 9 Sep 2016, 15:45:33
{txt}
{com}. clear 
{txt}
{com}. set more off
{txt}
{com}. use "charity field1.dta"
{txt}
{com}. 
. gen t = .
{txt}(614 missing values generated)

{com}. replace t = 1 if beslutsform == 1
{txt}(67 real changes made)

{com}. replace t = 1 if beslutsform == 2
{txt}(61 real changes made)

{com}. replace t = 5 if beslutsform == 3
{txt}(54 real changes made)

{com}. replace t = 5 if beslutsform == 4
{txt}(59 real changes made)

{com}. replace t = 5 if beslutsform == 5
{txt}(71 real changes made)

{com}. replace t = 0 if beslutsform == 6
{txt}(75 real changes made)

{com}. replace t = 5 if beslutsform == 7
{txt}(68 real changes made)

{com}. replace t = 5 if beslutsform == 8
{txt}(68 real changes made)

{com}. replace t = 5 if beslutsform == 9
{txt}(82 real changes made)

{com}. 
. drop if t == 5
{txt}(402 observations deleted)

{com}. 
. 
. set seed  358395
{txt}
{com}. sem (d2 <-  t  wl p)(p <-  t  wl)  , vce(cluster klassnummer)
{res}{txt}(1 observations with missing values excluded)

Endogenous variables

{p 0 11 2}Observed:{space 2}{res}d2 p{p_end}
{txt}
Exogenous variables

{p 0 11 2}Observed:{space 2}{res}t wl{p_end}
{txt}
Fitting target model:

Iteration 0:{space 3}log pseudolikelihood = {res:-251.17832}  
Iteration 1:{space 3}log pseudolikelihood = {res:-251.17832}  

Structural equation model{col 49}Number of obs{col 67}= {res}       202
{col 1}{txt}Estimation method{col 20}= {res}ml
{col 1}{txt}Log pseudolikelihood{col 20}= {res}-251.17832

{txt}{ralign 78:(Std. Err. adjusted for {res:9} clusters in klassnummer)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d2 <-     {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .3598768{col 26}{space 2} .0669312{col 37}{space 1}    5.38{col 46}{space 3}0.000{col 54}{space 4} .2286941{col 67}{space 3} .4910595
{txt}{space 11}t {c |}{col 14}{res}{space 2}-.0746221{col 26}{space 2} .0388261{col 37}{space 1}   -1.92{col 46}{space 3}0.055{col 54}{space 4}-.1507199{col 67}{space 3} .0014758
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1366328{col 26}{space 2} .0505148{col 37}{space 1}    2.70{col 46}{space 3}0.007{col 54}{space 4} .0376257{col 67}{space 3} .2356399
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .502179{col 26}{space 2} .0566003{col 37}{space 1}    8.87{col 46}{space 3}0.000{col 54}{space 4} .3912445{col 67}{space 3} .6131135
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .2126244{col 26}{space 2} .0852991{col 37}{space 1}    2.49{col 46}{space 3}0.013{col 54}{space 4} .0454412{col 67}{space 3} .3798075
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1697264{col 26}{space 2} .0422682{col 37}{space 1}    4.02{col 46}{space 3}0.000{col 54}{space 4} .0868822{col 67}{space 3} .2525706
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .5677524{col 26}{space 2} .0949643{col 37}{space 1}    5.98{col 46}{space 3}0.000{col 54}{space 4} .3816258{col 67}{space 3} .7538791
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
    var(e.d2){c |}{col 14}{res}{space 2} .0534932{col 26}{space 2} .0106577{col 54}{space 4} .0362001{col 67}{space 3} .0790473
{txt}     var(e.p){c |}{col 14}{res}{space 2} .0540589{col 26}{space 2} .0158996{col 54}{space 4} .0303749{col 67}{space 3}   .09621
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       202{col 27}        .{col 38}-251.1783{col 49}     8{col 58} 518.3566{col 69} 544.8228
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat teffects 
{res}

{txt}Direct effects
{res}{txt}{ralign 78:(Std. Err. adjusted for {res:9} clusters in klassnummer)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d2 <-     {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .3598768{col 26}{space 2} .0669312{col 37}{space 1}    5.38{col 46}{space 3}0.000{col 54}{space 4} .2286941{col 67}{space 3} .4910595
{txt}{space 11}t {c |}{col 14}{res}{space 2}-.0746221{col 26}{space 2} .0388261{col 37}{space 1}   -1.92{col 46}{space 3}0.055{col 54}{space 4}-.1507199{col 67}{space 3} .0014758
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1366328{col 26}{space 2} .0505148{col 37}{space 1}    2.70{col 46}{space 3}0.007{col 54}{space 4} .0376257{col 67}{space 3} .2356399
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .2126244{col 26}{space 2} .0852991{col 37}{space 1}    2.49{col 46}{space 3}0.013{col 54}{space 4} .0454412{col 67}{space 3} .3798075
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1697264{col 26}{space 2} .0422682{col 37}{space 1}    4.02{col 46}{space 3}0.000{col 54}{space 4} .0868822{col 67}{space 3} .2525706
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Indirect effects
{res}{txt}{ralign 78:(Std. Err. adjusted for {res:9} clusters in klassnummer)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d2 <-     {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 11}t {c |}{col 14}{res}{space 2} .0765186{col 26}{space 2} .0266178{col 37}{space 1}    2.87{col 46}{space 3}0.004{col 54}{space 4} .0243486{col 67}{space 3} .1286886
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .0610806{col 26}{space 2}  .011146{col 37}{space 1}    5.48{col 46}{space 3}0.000{col 54}{space 4} .0392347{col 67}{space 3} .0829264
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 10}wl {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Total effects
{res}{txt}{ralign 78:(Std. Err. adjusted for {res:9} clusters in klassnummer)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d2 <-     {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .3598768{col 26}{space 2} .0669312{col 37}{space 1}    5.38{col 46}{space 3}0.000{col 54}{space 4} .2286941{col 67}{space 3} .4910595
{txt}{space 11}t {c |}{col 14}{res}{space 2} .0018965{col 26}{space 2} .0348245{col 37}{space 1}    0.05{col 46}{space 3}0.957{col 54}{space 4}-.0663582{col 67}{space 3} .0701512
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1977134{col 26}{space 2} .0504373{col 37}{space 1}    3.92{col 46}{space 3}0.000{col 54}{space 4} .0988582{col 67}{space 3} .2965686
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .2126244{col 26}{space 2} .0852991{col 37}{space 1}    2.49{col 46}{space 3}0.013{col 54}{space 4} .0454412{col 67}{space 3} .3798075
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1697264{col 26}{space 2} .0422682{col 37}{space 1}    4.02{col 46}{space 3}0.000{col 54}{space 4} .0868822{col 67}{space 3} .2525706
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. *** indirect and direct - winning/losing
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d2 <-  t  wl p)(p <-  t  wl)  , vce(cluster klassnummer)
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indir  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end 
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indir) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       202
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2} .0610806{col 26}{space 2} .0224507{col 37}{space 1}    2.72{col 46}{space 3}0.007{col 54}{space 4}  .017078{col 67}{space 3} .1050832
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2} .1977134{col 26}{space 2} .0444176{col 37}{space 1}    4.45{col 46}{space 3}0.000{col 54}{space 4} .1106566{col 67}{space 3} .2847703
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       202
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2}  .0610806{col 27}{space 2}-.0005509{col 38}{space 2} .02245073{col 51}{space 2}  .022671{col 63}{space 1} .1113159{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .0256132{col 63}{space 1} .1140799{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2} .19771343{col 27}{space 2}-.0017156{col 38}{space 2} .04441756{col 51}{space 2} .1125937{col 63}{space 1} .2820324{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .1136774{col 63}{space 1} .2838149{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** indirect and direct - treatment
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d2 <- wl  t  p)(p <- wl  t )   , vce(cluster klassnummer)
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indirect  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indirect) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       202
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2} .0765186{col 26}{space 2}  .022437{col 37}{space 1}    3.41{col 46}{space 3}0.001{col 54}{space 4} .0325428{col 67}{space 3} .1204943
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2} .0018965{col 26}{space 2} .0382657{col 37}{space 1}    0.05{col 46}{space 3}0.960{col 54}{space 4}-.0731028{col 67}{space 3} .0768958
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       202
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2} .07651858{col 27}{space 2}-.0002856{col 38}{space 2} .02243702{col 51}{space 2} .0359948{col 63}{space 1} .1257631{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .0383235{col 63}{space 1} .1273104{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2} .00189651{col 27}{space 2} .0005091{col 38}{space 2} .03826567{col 51}{space 2}-.0741934{col 63}{space 1} .0787091{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} -.075356{col 63}{space 1} .0761988{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** randomization check
. reg  t  gender interest ideology , robust

{txt}Linear regression                               Number of obs     = {res}       190
                                                {txt}F(3, 186)         =  {res}     2.35
                                                {txt}Prob > F          = {res}    0.0740
                                                {txt}R-squared         = {res}    0.0331
                                                {txt}Root MSE          =    {res} .47941

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}           t{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}gender {c |}{col 14}{res}{space 2} .1696304{col 26}{space 2} .0750815{col 37}{space 1}    2.26{col 46}{space 3}0.025{col 54}{space 4} .0215095{col 67}{space 3} .3177512
{txt}{space 4}interest {c |}{col 14}{res}{space 2} .0152274{col 26}{space 2} .1211836{col 37}{space 1}    0.13{col 46}{space 3}0.900{col 54}{space 4}-.2238437{col 67}{space 3} .2542985
{txt}{space 4}ideology {c |}{col 14}{res}{space 2}-.1901671{col 26}{space 2} .1350376{col 37}{space 1}   -1.41{col 46}{space 3}0.161{col 54}{space 4}-.4565693{col 67}{space 3} .0762352
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .6529152{col 26}{space 2} .0986016{col 37}{space 1}    6.62{col 46}{space 3}0.000{col 54}{space 4} .4583939{col 67}{space 3} .8474365
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e7r.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 9 Sep 2016, 15:47:23
{txt}{.-}
{smcl}
{txt}{sf}{ul off}